package test;

import java.util.Random;
import java.util.Scanner;

public class test2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();
        char[] arr = str.toCharArray();
        Random r = new Random();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < arr.length; i++) {
            int sui = r.nextInt(arr.length);

            sb.append(arr[sui]);
        }
        System.out.println(sb);
    }
}
